package com.five.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.five.pojo.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    void deleteRoleByAdminId(Long adminId);

    List<Long> findByAdminId(Long adminId);

    void deleteRoleAndMenu(Long roleId);

    int insertRoleAndMenu(@Param("id") Long id,@Param("menuIds") List<Long> menuIds);
}
